{% load i18n %}

<div id="authdlg" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header login">
				<h4 class="modal-title" id="">{% trans "Login" %}</h4>
			</div>
			<div class="modal-header signup">
				<h4 class="modal-title" id="myModalLabel">{% trans "Create an account" %}</h4>
			</div>
			<div class="modal-body">
				<div id="auth_form_errormsg" class="alert alert-danger" >
				{% trans "Invalid password or username." %}
				</div>
				<div id="auth_form_errormsg_captcha" class="alert alert-danger" >
				{% trans "Captcha failed." %}
				</div>
				<form class="form-horizontal" id="authform" method="POST" role="form">
					{% csrf_token %}
					<fieldset>
						<input type="hidden" id="action_id" name="action" >
						<div class="form-group">
							<label class="control-label col-md-2" for="username_id">{% trans "Account" %}  </label>
							<div class="col-md-10">
								<input type="text" class="form-control input-xlarge" id="username_id" name="username" placeholder="e-mail">
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-md-2" for="password_id">{% trans "Password" %}  </label>
							<div class="col-md-10">
								<input type="password" class="form-control input-xlarge" id="password_id" name="password" placeholder="password">
							</div>
							<div class="">
								<a id="forgot_pw" class="pull-right" href="{% url django.contrib.auth.views.password_reset %}" style="padding-top:6px;"><small>{% trans "Forgot your password" %}?</small></a>
							</div>
						</div>
						<div class="form-group">
							<div id="recaptcha_widget" class="col-md-10 col-md-offset-1">
									{{recaptcha_widget}}
							</div>
						</div>
					</fieldset>
				</form>
				<div id="new_user_alert_info" class="alert alert-info text-center" >
				{% trans "You will receive a validation e-mail after submit." %}
				</div>
				<div id="signup_success_alert" class="alert alert-success text-center" style="display:none">
				{% trans "Signup success, auto redirecting" %}...
				</div>
			</div>
			<div class="modal-footer">
				<div class="control-group">
					<div class="controls">
						<button id="auth_form_submit" class="btn btn-primary">{% trans "Submit" %}</button>
						<button class="btn btn-default " data-dismiss="modal">{% trans "Cancel"%}</button>						
					</div>
					<div class="progress progress-success progress-striped active">
						<div class="progress-bar" style="width: 100%;"></div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>